<?php
require_once(str_replace("\\", "/", dirname(__FILE__)) . "/./config.inc.php");

/*- 用户有关信息 -*/
$user = $context->getBean("modules.accounts.business.user");
$preferences = $user->getPreferences();
$global_default_page = $preferences["global_default_page"]["value"];
$global_default_page = $global_default_page ? $global_default_page : "pages.globaldefaultpage";
$isEntry = ($page_id == $global_default_page) ? "true" : "false";
$page_skin = $preferences["page_skin"]["value"];
$page_skin = $page_skin ? $page_skin : "default";
$page_container_width = $preferences["page_container_width"]["value"];
$page_container_width = $page_container_width ? $page_container_width : "760px";

$page_id = "pages.globaldefaultpage";
$page = $context->getBean($global_default_page);
//$page_id = "pages.testdefaultpage";
//$page = $context->getBean($page_id);
$page->assign("page_id", $page_id);
$page->assign("isEntry", $isEntry);
$page->assign("isDefault", "true");
$page->assign("page_skin", $page_skin);
$page->assign("page_container_width", $page_container_width);
$page->render();
?>
